<html>
<body>
Reports <code>forEach</code> functions in the scope functions such as <code>also</code> or <code>apply</code> that can be simplified.
<p><b>Convert forEach call to onEach</b> quick-fix can be used to amend the code automatically.</p>
<p>Examples:</p>
<pre><code>
  fun test(list: List&lt;Int&gt;) {
      val x = list.also { it.forEach { it + 4 } }.toString()
      val y = list.apply { forEach { println(it) } }
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  fun test(list: List&lt;Int&gt;) {
      val x = list.onEach { it + 4 }.toString()
      val y = list.onEach { println(it) }
  }
</code></pre>
</body>
</html>